package myJs.api

import org.scalajs.dom.window

/**
	*Created by yz on 30/7/2023
	*/object Api {

  val apiUrl = window.location.hostname match {
    case "localhost" => "http://localhost:9000/mtd"
    case _ => s"http://${window.location.host}/mtd"
  }

  def images = {
    s"${apiUrl}/assets/images"
  }

  val browse=Browse


}
